import "./styles/index.css";
import "./styles/header.less";
import "./styles/footer.scss"; // let logo = require('./assets/images/logo.png');
//     discriptor.writable=false;
// }
// class Person{
//     @readonly PI=3.14;
// }
// let p1=new Person();
// p1.PI=3.15;
// console.log(p1)

import React from "react";
import ReactDom from "react-dom"; // function App(){
//     return (
//         <div>react App</div>
//     )
// }
// ReactDom.render(<App />,document.getElementById("root"));
//

import moment from "moment"; // 引入中文

import logo from "./assets/images/logo.png"; // function readonly(target,key,discriptor) {

import "moment/locale/zh-cn";

const img = new Image();
img.src = logo;
document.body.appendChild(img);
console.log("ReactDom", ReactDom);
console.log("React", React); // 设置中文

moment.locale("zh-cn");
const momentStr = moment().subtract(10, "days").calendar();
console.log("现在时间：", momentStr);
console.log("观察变化");
